<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="../jquery/jquery-3.2.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap.css">

</head>
<style>
    .container{
        width: 450px;
        height: 300px;
        position: absolute;
        left:50%;
        top:50%;
        transform: translate(-50%,-50%);
    }
</style>
<body>

<div class="container">


        <form action="" class="form-horizontal">
            <div class="form-group">
                <label class="col-lg-2  control-label">用户名:</label>
                <div class="col-lg-10">

                    <input type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">密码:</label>
                <div class="col-lg-10">

                    <input type="password" class="form-control">
                </div>
            </div>

            <button class="btn btn-primary btn-block">登录</button>
        </form>

</div>
</body>
</html>